package com.example.design_pattern.command;

/**
 * 停止播放的命令
 */
public class StopCommand implements Command {

    private AudioPlayer mAudioPlayer;

    public StopCommand(AudioPlayer mAudioPlayer) {
        this.mAudioPlayer = mAudioPlayer;
    }

    @Override
    public void execute() {
        mAudioPlayer.stop();
    }
}
